<html>
<head><meta charset="utf-8"><title>Help understanding LifetimeContext · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Help.20understanding.20LifetimeContext.html">Help understanding LifetimeContext</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206835447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Help%20understanding%20LifetimeContext/near/206835447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Zach Schuermann <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Help.20understanding.20LifetimeContext.html#206835447">(Aug 13 2020 at 16:09)</a>:</h4>
<p>Hi all, this is my first <del>time</del> attempt contributing to Rust. I jumped on <a href="https://github.com/rust-lang/rust/issues/73931">this issue</a> but I've been fairly stuck. From the suggestion, it seemed like there would be a reasonable way of reusing <code>add_missing_lifetime_specifiers_label</code> in <code>different_lifetimes.rs</code> where the trait error is reported, but I have been having a tough time understanding how everything fits together (esp. <code>LifetimeContext</code> etc.). If anyone has any recommendations for resources I can read to get up to speed on this area of the compiler or if anyone can nudge me in the right direction that would be awesome! Thanks in advance :)</p>



<a name="206835835"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Help%20understanding%20LifetimeContext/near/206835835" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Help.20understanding.20LifetimeContext.html#206835835">(Aug 13 2020 at 16:12)</a>:</h4>
<p>not familiar with this part of the compiler, but maybe <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/late/lifetimes/struct.LifetimeContext.html">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/late/lifetimes/struct.LifetimeContext.html</a> and <a href="https://rustc-dev-guide.rust-lang.org/borrow_check/region_inference/lifetime_parameters.html">https://rustc-dev-guide.rust-lang.org/borrow_check/region_inference/lifetime_parameters.html</a> would help?</p>



<a name="206836068"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Help%20understanding%20LifetimeContext/near/206836068" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Zach Schuermann <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Help.20understanding.20LifetimeContext.html#206836068">(Aug 13 2020 at 16:14)</a>:</h4>
<p>thanks! I'm looking into it!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>